package NG::Gen::Task::LeaderBuy;
use strict;
use warnings;

use NG::Sys::Datetime;
our @ISA = qw(NG::Gen::Task::Task);

sub delay {
	my $self = shift;
	my $delay;
	for(@{$self->{proto}{param}}){
		if($_->{name} eq "delay"){
			$delay = $_->{value};
		}
	}
	$delay ||= 60;
	return $delay;
}

sub before_assign {
	my ($self,$user,$leader) = @_;
	return 0;
}
sub after_assign {
	my ($self,$user,$leader) = @_;
	return 0;
}
sub before_stop {
	my ($self,$user,$leader) = @_;
	return 0;
}
sub after_stop {
	my ($self,$user,$leader) = @_;
	return 0;
}
1;
